import 'package:json_annotation/json_annotation.dart';

part 'search.g.dart';

@JsonSerializable()
class SearchData {
  String id;
  String title;
  String type;
  int isManageTeacher;
  int isJoinClass;
  String duration;
  String resourcesurllow;
  String resourcesurlhigh;
  String resourcesurlsuper;
  String createMan;
  int  totalCount;
  String createTime;
  String moduleType;
  String rcName;
  SearchData(
      {this.id,
      this.title,
      this.type,
      this.isManageTeacher,
      this.isJoinClass,
      this.duration,
      this.resourcesurllow,
      this.resourcesurlhigh,
      this.resourcesurlsuper,
      this.createMan,
      this.totalCount,
      this.createTime,
      this.moduleType,
      this.rcName
      });

  //反序列化
  factory SearchData.fromJson(Map<String, dynamic> json) => _$SearchDataFromJson(json);
//序列化
  Map<String, dynamic> toJson() => _$SearchDataToJson(this);

}
